
package com.zelix;

import java.io.*;
import java.util.Vector;


public class zd extends kd
{

    is g;
    public static boolean h;
    private static String z[];

    zd(int i, jb jb, nm nm1)
        throws IOException
    {
        super(i);
        int j = jb.readUnsignedShort();
        g = nm1.a(j);
    }

    public zd(int i, is is1)
    {
        super(i);
        g = is1;
    }

    public sn a(sn sn1, boolean flag, boolean flag1, um um)
        throws sb, wb
    {
        wn awn[];
        wn awn1[];
        int i;
        e1 e1;
        int j;
        j = kd.e;
        awn = sn1.f();
        awn1 = sn1.c();
        Object obj = null;
        i = awn1.length;
        e1 = sn1.e();
        super.d;
        JVM INSTR lookupswitch 14: default 979
    //                   19: 156
    //                   20: 313
    //                   178: 408
    //                   179: 464
    //                   180: 500
    //                   181: 558
    //                   182: 698
    //                   183: 679
    //                   184: 717
    //                   185: 698
    //                   187: 736
    //                   189: 804
    //                   192: 877
    //                   193: 935;
           goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L8 _L11 _L12 _L13 _L14
_L2:
        wn awn2[];
label0:
        {
            awn2 = wn.a(i + 1);
            System.arraycopy(awn1, 0, awn2, 0, i);
            if(g instanceof om)
            {
                String s = ((om)g).a();
                if(s.equals(z[8]))
                {
                    awn2[i] = wn.i;
                    if(j == 0)
                        break label0;
                }
                if(s.equals(z[7]))
                {
                    awn2[i] = wn.s;
                    if(j == 0)
                        break label0;
                }
                if(!s.equals(z[6]))
                    break label0;
                awn2[i] = wn.k;
                if(j == 0)
                    break label0;
            }
            if(g instanceof ks)
                awn2[i] = wn.D;
        }
        return new sn(awn2, awn, e1);
_L3:
        wn awn3[];
        String s1;
        awn3 = wn.a(i + 1);
        System.arraycopy(awn1, 0, awn3, 0, i);
        s1 = ((om)g).a();
        if(!s1.equals(z[3])) goto _L16; else goto _L15
_L15:
        awn3[i] = wn.j;
        if(j == 0) goto _L17; else goto _L16
_L16:
        if(s1.equals(z[4]))
            awn3[i] = wn.l;
_L17:
        return new sn(awn3, awn, e1);
_L4:
        wn awn4[] = wn.a(i + 1);
        System.arraycopy(awn1, 0, awn4, 0, i);
        vs vs1 = (vs)g;
        awn4[i] = wn.c(vs1.s());
        return new sn(awn4, awn, e1);
_L5:
        wn awn5[] = wn.a(i - 1);
        System.arraycopy(awn1, 0, awn5, 0, i - 1);
        return new sn(awn5, awn, e1);
_L6:
        wn awn6[] = wn.a(i);
        System.arraycopy(awn1, 0, awn6, 0, i - 1);
        vs vs2 = (vs)g;
        awn6[i - 1] = wn.c(vs2.s());
        return new sn(awn6, awn, e1);
_L7:
        wn awn7[] = wn.a(i - 2);
        System.arraycopy(awn1, 0, awn7, 0, i - 2);
        if(flag)
        {
            vs vs3 = (vs)g;
            if(!sn.a(awn1[i - 1], wn.c(vs3.s()), um))
                throw new sb(z[5] + awn1[i - 1].d() + " " + vs3.s());
        }
        return new sn(awn7, awn, e1);
_L9:
        return a(awn1, i, awn, e1, true, true, flag, flag1, um);
_L8:
        return a(awn1, i, awn, e1, true, false, flag, flag1, um);
_L10:
        return a(awn1, i, awn, e1, false, false, flag, flag1, um);
_L11:
        wn awn8[] = wn.a(i + 1);
        System.arraycopy(awn1, 0, awn8, 0, i);
        ks ks1 = (ks)g;
        String s2 = ks1.b();
        awn8[i] = wn.a(ks1.o(), false, (ce)this);
        return new sn(awn8, awn, e1);
_L12:
        wn awn9[] = wn.a(i);
        System.arraycopy(awn1, 0, awn9, 0, i - 1);
        ks ks2 = (ks)g;
        awn9[i - 1] = wn.c("[" + ks2.o());
        return new sn(awn9, awn, e1);
_L13:
        wn awn10[] = wn.a(i);
        System.arraycopy(awn1, 0, awn10, 0, i - 1);
        ks ks3 = (ks)g;
        awn10[i - 1] = wn.c(ks3.o());
        return new sn(awn10, awn, e1);
_L14:
        wn awn11[] = wn.a(i);
        System.arraycopy(awn1, 0, awn11, 0, i - 1);
        awn11[i - 1] = wn.i;
        return new sn(awn11, awn, e1);
_L1:
        lx.b(false, z[0] + super.d);
        return null;
    }

    public final boolean b()
    {
        return true;
    }

    public boolean a(int i, int j)
    {
        switch(super.d)
        {
        case 19: // '\023'
        case 20: // '\024'
        case 178: 
        case 180: 
        case 187: 
            return false;

        case 189: 
        case 192: 
        case 193: 
            return i >= j - 1;

        case 179: 
        case 181: 
            return i >= j;

        case 182: 
        case 183: 
        case 184: 
        case 185: 
            return i >= j - ((ss)g).u();
        }
        lx.b(false, z[0] + super.d);
        return false;
    }

    public final boolean c()
    {
        return false;
    }

    public void a(PrintWriter printwriter, StringBuffer stringbuffer, int i)
    {
        StringBuffer stringbuffer1 = new StringBuffer(100);
        String s = kd.h(super.d);
        stringbuffer1.append(s + " " + g.k());
        String s1 = kd.e(super.d);
        s1 = kd.a(s1, g.k());
        if(s1 != null)
            stringbuffer1.append("\t" + s1);
        printwriter.println(stringbuffer.toString() + stringbuffer.toString() + stringbuffer1);
    }

    public int d()
    {
        return 3;
    }

    public is p()
    {
        return g;
    }

    public kd h()
    {
        if(super.d == 19 && g.j() <= 255)
            return new ud(g);
        else
            return null;
    }

    private sn a(wn awn[], int i, wn awn1[], e1 e1, boolean flag, boolean flag1, boolean flag2, 
            boolean flag3, um um)
        throws sb
    {
        ss ss1;
        Vector vector;
        int j;
        String s;
        int l;
        int i2;
        i2 = kd.e;
        ss1 = (ss)g;
        vector = ss1.w();
        j = vector.size();
        s = ss1.v();
        l = s != null ? 1 : 0;
        if(!flag2) goto _L2; else goto _L1
_L1:
        int i1 = 0;
        if(i2 == 0) goto _L4; else goto _L3
_L3:
        wn wn1 = awn[(i - j) + i1];
        wn wn2 = wn.c((String)vector.get(i1));
        try
        {
            if(!sn.a(wn1, wn2, um))
                throw new sb(z[2] + wn1.d() + " " + wn2.d());
        }
        catch(wb wb1) { }
        i1++;
_L4:
        if(i1 < j) goto _L3; else goto _L2
_L2:
        wn awn2[];
        wn wn3;
        wn wn4;
        int j1;
        wn awn3[];
        int k1;
        i1 = (i - j - (flag ? 1 : 0)) + l;
        if(i1 < 0)
            throw new sb(z[1] + i1);
        awn2 = wn.a(i1);
        System.arraycopy(awn, 0, awn2, 0, i1 - l);
        if(l == 1)
            awn2[awn2.length - 1] = wn.c(s);
        if(!flag1 || !ss1.y())
            break MISSING_BLOCK_LABEL_384;
        wn3 = awn[i - j - 1];
        wn4 = wn3.b();
        j1 = awn1.length;
        awn3 = wn.a(j1);
        System.arraycopy(awn1, 0, awn3, 0, j1);
        k1 = 0;
        if(i2 == 0) goto _L6; else goto _L5
_L5:
        if(awn2[k1] == wn3)
            awn2[k1] = wn4;
        k1++;
_L6:
        if(k1 < i1) goto _L5; else goto _L7
_L7:
        int l1 = 0;
        if(i2 == 0) goto _L9; else goto _L8
_L8:
        if(awn3[l1] == wn3)
            awn3[l1] = wn4;
        l1++;
_L9:
        if(l1 < j1) goto _L8; else goto _L10
_L10:
        return new sn(awn2, awn3, e1);
        return new sn(awn2, awn1, e1);
    }

    public final boolean k()
    {
        switch(super.d)
        {
        case 182: 
        case 183: 
        case 184: 
        case 185: 
            return true;
        }
        return false;
    }

    public boolean n()
    {
        return super.d == 19 && (g instanceof ys);
    }

    public boolean a(sy sy1, ly ly1, Object obj, int i)
    {
        if(super.d == 19 && (g instanceof ys))
        {
            zs zs1 = ((ys)g).m();
            if(zs1.a() >= 2 && !ly1.a(zs1))
            {
                sy1.b(obj, g, kd.c.a(i));
                return true;
            } else
            {
                return false;
            }
        } else
        {
            return false;
        }
    }

    public final boolean o()
    {
        switch(super.d)
        {
        case 19: // '\023'
        case 20: // '\024'
        case 178: 
        case 180: 
        case 187: 
        case 189: 
        case 193: 
        case 197: 
            return true;

        case 179: 
        case 181: 
        case 192: 
            return false;

        case 182: 
        case 183: 
        case 184: 
        case 185: 
            ss ss1 = (ss)g;
            return ss1.v() != null;
        }
        lx.b(false, z[0] + super.d);
        return false;
    }

    public void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        super.a(dataoutputstream);
        dataoutputstream.writeShort(g.j());
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x50;
                    break;
                case 1:
                    key = 14;
                    break;
                case 2:
                    key = 26;
                    break;
                case 3:
                    key = 59;
                    break;
                default:
                    key = 33;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[9];
        as[0] = z("9`lZM9j:TQ3a~^\001".toCharArray());
        as[1] = z("\003z{XJp{t_D\"hvTVp4:".toCharArray());
        as[2] = z("\004wj^\001=giV@$mr\033@$.w^U8a~\033H>xuX@$guU\001j.".toCharArray());
        as[3] = z("<at\\".toCharArray());
        as[4] = z("4aoYM5".toCharArray());
        as[5] = z("\004wj^\001=giV@$mr\033N>.|RD<j:ZR#g}UL5`n\033\033p".toCharArray());
        as[6] = z("6buZU".toCharArray());
        as[7] = z("#zhRO7".toCharArray());
        as[8] = z("9`n^F5|".toCharArray());
        z = as;
    }
}
